#ifndef ENEMYPLANEH_H
#define ENEMYPLANEH_H
#include <QPixmap>
#include <QRect>
#include <Qpixmap>
#include "config.h"
#include "plane.h"
#include "enemybullet.h"


class enemyplane:public Plane
{
public:
    enemyplane();
    //更新坐标
    void updatePosition();
public:
    //敌机资源对象
    QPixmap m_enemy;

    //位置
    double m_X;
    double m_Y;

    //敌机的矩形边框（碰撞检测）
    QRect m_Rect;

    //敌机出场间隔
    int interval;

    //弹匣
    Enemybullet m_bullets[BULLET_NUM];

    //发射间隔记录
    int m_recorder;



    //状态
    bool m_Free;

    //速度
    double m_Speed;

    void shoot();


};

#endif // ENEMYPLANEH_H
